<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.kaishengit.entity.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>登录主界面</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
		.mydiv{
			height:1000px;
		}
		.navbar-inner{
			border-radius:0px 0px;
		}
		#container{
			margin-top:60px;
			height:500px;
			border-radius:5px 5px;
		}
		#header{
			height:45px;
		}
		.btn1{		
			font-size:18px;
			margin-left:50px;
			margin-top:10px;
		}
		.plist-top{
			height:40px;
			border-bottom:1px solid red;
			line-height:40px;
		}
		.plist .plist-body{
			height:70px;
		}
	</style>
  </head>
  
  <body>
  	<%Employee emp=(Employee)session.getAttribute("emp"); %>
    
     <div class="navbar">
		<div class="navbar-inner  navbar-fixed-top">
			<div class="container" style="width: auto;">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
				  <span class="icon-bar"></span>
				  <span class="icon-bar"></span>
				  <span class="icon-bar"></span>
				</a>
				<a class="brand" href="#">凯盛软件项目管理系统</a>
				<div class="nav-collapse">  				 
					<ul class="nav pull-right">
						<li><a href="#">欢迎您：<%=emp.getUsername() %></a></li>
						<li class="divider-vertical"></li>
						<li class="dropdown">
						  <a href="#" class="dropdown-toggle" data-toggle="dropdown">操作 <b class="caret"></b></a>
						  <ul class="dropdown-menu">
							<li><a href="member.jspx">成员管理</a></li>
							<li><a href="tran.jspx?name=editpassword">修改密码</a></li>
							<li class="divider"></li>
							<li><a href="login.jsp">安全退出</a></li>
						  </ul>
						</li>
					</ul>
				</div><!-- /.nav-collapse -->
			</div>
		</div><!-- /navbar-inner -->
	</div><!-- /navbar -->

	<div class="container" id="container">
		<div id="header"  class="form-actions">
			<form action="addpro.jspx?name=gojsp" method="post">
				<button class="btn btn-primary" type="submit" style="font-size:25px;height:40px">+新建项目</button>
			</form>
		</div>
		<h2>项目列表</h2>
		<%
			List<Project> plist=(List<Project>)session.getAttribute("plist");
			if(plist!=null){
				for(Project pro: plist){
		%>
			<ul style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px" class="breadcrumb">
				<li class="active">
					<a href="project.jspx?projectid=<%=pro.getId() %>"><i class="icon-bookmark"></i><%=pro.getPname() %></a>
				</li>
				<li style="float:right"><i class="icon-edit"></i><a class="link-black" href="tran.jspx?name=editproject&nowprojectid=<%=pro.getId() %>">编辑项目</a></li>
			</ul>
			
			<div class="wall" style="border:1px solid #EAEAEA;border-top:none;height:100px">
				<br/>
				<p>
					&nbsp&nbsp&nbsp&nbsp<%=pro.getPdescripe() %>
				
				</p>
			</div>
		<%
				}
			}
		%>
	</div>
    
  </body>
</html>
